package cn.xgl6.springcloud.order.service;

import cn.xgl6.springcloud.utils.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author xgl
 * @create 2020-05-14 17:56
 */
@FeignClient("service-product")
public interface ProductService {
    @GetMapping("/product/get/{id}")
    CommonResult getProductById(@PathVariable("id") Integer id);
}
